package com.atguigu.spring.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Component
@Aspect
@Order(1)
public class ValidationAspect {

    @Pointcut("execution(* com.atguigu.spring.aop.CalculatorImpl.*(..))")
    public void pointCut(){

    }
    @Before("pointCut()")
    public void BeforeAdviceMethod(){
        System.out.println("ValidationAspect:前置通知");
    }

}
